package com.ruoyi.project.shortUrl.config.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 短链接系统设置对象 web_config
 * 
 * @author motisy
 * @date 2020-03-29
 */
public class ShortConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    
    public static final String NUMBER = "number";
    
    public static final String TEXT = "text";
    
    public static final String TEXT_AREA = "textarea";
    
    public static final String DATE = "date";
    
    public static final String OTHER = "other";

    /** 配置项 */
    private String key;

    /** 配置值 */
    @Excel(name = "配置值")
    private String value;

    /** 描述 */
    @Excel(name = "描述")
    private String des;
    
    /** 描述 */
    @Excel(name = "类型")
    private String type;

    public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setKey(String key) 
    {
        this.key = key;
    }

    public String getKey() 
    {
        return key;
    }
    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }
    public void setDes(String des) 
    {
        this.des = des;
    }

    public String getDes() 
    {
        return des;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("key", getKey())
            .append("value", getValue())
            .append("des", getDes())
            .toString();
    }
}
